package com.linkme2night.view.examples;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.linkme2night.R;
import com.linkme2night.controller.FrontController;

public class ExampleEntryPointInteractWVenueActivity extends Activity {

	private FrontController fController;
	private Button btn;
	private Context context;
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_entry_point);
		
		fController= new FrontController();
		context= getApplicationContext();
		btn=(Button)findViewById(R.id.button1);
		
		btn.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				fController.openInteractWithVenue(context, 1, 1);
				
			}
		});
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.entry_point, menu);
		return true;
	}

}
